package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.BdEntry;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface EntryMapper extends BaseMapper<BdEntry> {
    @Select("select * from bd_act_entry where activity_id = #{id}")
    BdEntry selectByActiveId(Integer id);

    @Select("select id from bd_activity where name = #{name}")
    Integer selectIdByName(String name);
}
